home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 25 / AMIGAplus Sonderheft 25 (2000)(Falke)(DE)(Track 1 of 4)[!].iso / Rexx / MakeIcons.pprx < prev    next >
Text File  |  2000-05-08  |  30KB  |  885 lines

  1. /* Personal Paint Amiga Rexx script - Copyright © 1996, 1997 Cloanto Italia srl */
  2.  
  3. /* $VER: MakeIcons.pprx 1.2 */
  4.  
  5. /** ENG
  6.  This script creates icons for the picture and animation files in
  7.  the specified path. No icons are created or modified for unrecognized
  8.  types of files (e.g. texts or executable programs). The artwork files
  9.  are not modified or rewritten - only the icon files are.
  10.  
  11.  The settings requester allows the user to set several parameters
  12.  which affect the creation of the icons:
  13.  
  14.  - Icon Type: Default (default icon images), Picture (reduced thumbnail
  15.  pictures for image, brush, animation and anim-brush files), NewIcons+Def
  16.  (reduced thumbnail pictures in NewIcons format, the default images are
  17.  used for the standard icon image), NewIcons+Dot (reduced thumbnail pictures
  18.  in NewIcons format, a small "dot" standard image is used to save
  19.  disk space).
  20.  
  21.  - File Type: Auto (picture files are saved as images or brushes, based
  22.  on their format), Image (picture files are saved as images, if possible),
  23.  Brush (picture files are always saved as brushes).
  24.  
  25.  - Width: maximum width of the picture icons.
  26.  
  27.  - Height: maximum height of the picture icons.
  28.  
  29.  - Icon Palette: Standard (the first four and the last four Workbench
  30.  colors are used for Picture icons, and the standard 16 colors palette
  31.  is used for NewIcons), Best (all Workbench pens are used for Picture
  32.  icons, and the full original picture palette is used for NewIcons),
  33.  Standard (Gray) (same as Standard, but only gray shades are used), Best
  34.  (Gray) (same as Best, but only gray shades are used).
  35.  
  36.  - Color Average: when this option is active, reduced picture icons
  37.  are generated with a color average algorithm. This improves the
  38.  quality, but slows down the creation of the icons.
  39.  
  40.  - Animation Frame: First (the first frame is used for
  41.  the picture icons of animation/anim-brushes), Central (the
  42.  middle frame is used), Last (the last frame is used), Manual Selection
  43.  (a frame selection requester is opened for every animation loaded, and
  44.  the middle frame is used for anim-brushes).
  45.  
  46.  - Target: Existing Icons (new icons are only created for files which
  47.  already have an icon), All Files (icons are created for all image, brush,
  48.  animation, anim-brush, palette and stencil files).
  49.  
  50.  - Subdirectories: when this option is active, the script processes not
  51.  only the specified directory, but also all subdirectories.
  52.  
  53.  - Work Directory: this is the directory in which the script stores
  54.  the temporary files from which it then copies the new icons. The
  55.  storage unit should have sufficient space to store at least the largest
  56.  file.
  57.  
  58.  After the settings requester is closed, a path requester is used to
  59.  select the target directory.
  60.  
  61.  The "Color Reduction" and "Dithering" program settings also affect the
  62.  quality of the reduced picture icons, because some pictures/brushes may be
  63.  color-reduced before being loaded.
  64.  
  65.  In some circumstances, if the script runs while the user interacts
  66.  with the Workbench, the Workbench Update menu item must be selected in
  67.  order to visually update the icons in modified by this script.
  68.  
  69.  When creating reduced picture icons, it is recommended to set the "Brush"
  70.  file type, so that all icons can have the proper ratio, even if a
  71.  matching video mode is unavailable.
  72.  
  73.  When icons are created with the Picture type setting, the script uses
  74.  the current Workbench (number of colors, palette, ratio) as a reference
  75.  to create the icons. NewIcons icons, instead, are more independent from
  76.  the environment in which they were created, since only the aspect ratio
  77.  of the Workbench screen is checked before creating NewIcons.
  78.  
  79.  Personal Paint's default icons, stored in "PPaint_Icons", can be freely
  80.  modified to change the default icon image, and the Tool Types and Default
  81.  Tool for each file type.
  82. */
  83.  
  84. /** DEU
  85.  Mit Hilfe dieses Skripts lassen sich Piktogramme für Bild- und
  86.  Animationsdateien unter dem angegebenen Pfad erstellen. Es ist jedoch nicht
  87.  möglich, für unbekannte Dateitypen (z. B. Texte oder ausführbare Programme)
  88.  Piktogramme zu erstellen. Die Bilder und Animationen selbst werden nicht
  89.  modifiziert, sondern ausschließich die Piktogrammdateien.
  90.  
  91.  Im Dialogfenster "Einstellungen" lassen sich verschiedene Parameter zur
  92.  Festlegung bestimmter Eigenschaften für die Piktogramme einstellen:
  93.  
  94.  - Typ: Standard (Standard-Piktogramme), Bild (Kleingrafiken von Bildern,
  95.    Pinseln, Animationen und Animationspinseln), NewIcons+Def (Kleingrafiken im
  96.    NewIcons-Format, wobei Standardbilder für das Standardpiktogramm verwendet
  97.    werden), NewIcons+Dot (Kleingrafiken im NewIcons-format, wobei ein kleines
  98.    "Dot"-Standardbild benutzt wird, um den Plattenspeicherbedarf zu verringern.
  99.  
  100.  - Dateityp: Auto (Bilddateien werden, abhängig von ihrem Format, entweder
  101.    als Bilder oder Pinsel gespeichert), Bild (Bilddateien werden, sofern
  102.    möglich, als Bilder gespeichert), Pinsel (Bilddateien werden grundsätzlich
  103.    als Pinsel gespeichert).
  104.  
  105.  - Breite: Maximale Breite der Bild-Piktogramme.
  106.  
  107.  - Height: Maximale Höhe der Bild-Piktogramme.
  108.  
  109.  - Piktogrammpalette: Standard (für Bild-Piktogramme werden die ersten und
  110.    letzten 4 Farben der Workbenchpalette verwendet, die normale 16
  111.    Farben-Palette für NewIcons), Beste (für Bild-Piktogramme werden alle 16
  112.    Workbench-Pens verwendet, für NewIcons die volle Bildpalette), Standard
  113.    (Grau) (wie Standard, allerdings werden nur Graustufen verwendet), Beste
  114.    (Grau) (wie Beste, allerdings werden nur Graustufen verwendet).
  115.  
  116.  - Farbmittelwert: Wenn diese Option aktiviert ist, werden die
  117.    Piktogramm-Kleingrafiken auf der Grundlage eines besonderen Algorithmusses
  118.    erzeugt. Die hierdurch erzielte bessere Qualität wird allerdings mit einer
  119.    längeren Erstellungsdauer erkauft.
  120.  
  121.  - Anim-Bild: Erstes (für Grafik-Piktogramme wird das erste Bild der
  122.    Animation oder des Animationspinsels verwendet), Mittleres (verwendet das
  123.    mittlere Einzelbild), Manuelle Auswahl (öffnet ein Auswahlfenster zur
  124.    Festlegung des gewünschten Bildes bei jeder geladenen Animation, bei
  125.    Animationspinseln wird automatisch das mittlere Bild verwendet).
  126.  
  127.  - Ziel: Existierende Piktogramme (neue Piktogramme werden nur für Dateien
  128.    erstellt, die bereits über ein älteres Piktogramm verfügen) alle Dateien
  129.    (erzeugt für alle Bild-, Pinsel-, Animationspinsel-, Paletten- und
  130.    Maskendateien ein neues Piktogramm.
  131.  
  132.  - Unterverzeichnis: Ist diese Option aktiviert, so werden nicht nur das
  133.    angegebene Verzeichnis, sondern auch alle darin enthaltenen
  134.    Unterverzeichnisse verarbeitet.
  135.  
  136.  - Arbeitsverzeichnis: In diesem Verzeichnis speichert das Skript seine
  137.    temporären Daten zur Erzeugung der neuen Piktogramme. Das betreffende
  138.    Speichermedium sollte zumindest noch genügend Platz zum Speichern der
  139.    größten Datei aufweisen.
  140.  
  141.  Nachdem das Einstellungen-Fenster geschlossen worden ist, muß in einem
  142.  Pfadauswahlfenster der gewünschte Zielpfad eingestellt werden.
  143.  
  144.  Die Programmeinstellungen "Farbreduzierung" und "Fehlerverteilung" wirken
  145.  sich ebenfalls möglicherweise auf die Qualität der Piktogrammgrafiken aus,
  146.  da einige Bilder oder Pinsel evtl schon beim Laden eine Reduzierung ihrer
  147.  Farbanzahl erfahren.
  148.  
  149.  Unter bestimmten Umständen (wenn dieses Skript läuft, während der Benutzer
  150.  mit der Workbench interagiert, muß im Workbench-Menü der Amiga Workbench der
  151.  Menübefehl "Bild neu aufbauen" ausgewählt werden, um die Darstellung der mit
  152.  diesem Skript erzeugten Piktogramme zu aktualisieren.
  153.  
  154.  Bei der Erzeugung von Piktogramm-Kleingrafiken wird empfohlen, als Dateityp
  155.  "Pinsel" einzustellen. Dadurch wird gewährleistet, daß alle Piktogramme auch
  156.  dann mit einem korrekten Größenverhältnis dargestellt werden, wenn kein
  157.  passender Videomodus verfügbar ist.
  158.  
  159.  Wenn die Piktogramme unter Verwendung des Dateityps "Bild" erzeugt werden,
  160.  werden die aktuellen Workbench-Einstellungen (Farbanzahl, Palette,
  161.  Höhen-/Breitenverhältnis als Referenz verwendet. NewIcons-Piktogramme
  162.  hingegen sind von der Umgebung, in der sie erzeugt wurden, sehr viel
  163.  unabhängiger, da hier lediglich das Höhen-/Breitenverhältnis der Workbench
  164.  überprüft wird.
  165.  
  166.  Um das Erscheinungsbild des standardmäßig verwendeten Piktogramms zu
  167.  änd